import Vue from 'vue'
// 引入App组件  它是所有组件的父组件
import App from './App.vue'
import router from './router'
import store from './store'
// import axios from 'axios'
import Navigation from 'vue-navigation'

import filters from "./tools/fillter.js";

// 注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

// 关闭vue的生产提示
Vue.config.productionTip = false

// 引入vant组件
import Vant from 'vant';
import 'vant/lib/index.css';

// 发布生产需注释
import Vconsole from 'vconsole'
let vConsole = new Vconsole()

// 请求类
// import httpRequest from './request/httpRequest'
// Vue.prototype.$http = httpRequest;

Vue.use(Navigation, {router, store,moduleName: 'navigation', keyName: 'vnk'})
// Vue.use(axios).use(vConsole).use(Vant)
Vue.use(vConsole).use(Vant)

new Vue({
  // el:'App',
  router,
  store,
  // 将App组件放入容器中
  render: h => h(App)
}).$mount('#app')
// 多种写法 对应 el:'App'
// .$mount('#app')
